package org.dcc.api;

import org.dcc.api.dto.OrderDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/orders")
public interface IOrderService {

    @GetMapping("/{id}")
    public String getOrder(@PathVariable(value = "id") int id);

    @PostMapping
    public int insertOrder(OrderDTO orderDTO);

}
